<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
    <title>
      Creating a Java Scrapbook Page
    </title>
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
  </head>
  <body>
    <h1>
      Creating a Java Scrapbook Page
    </h1>
    <p>
      The scrapbook allows Java expressions, to be run, inspected, and displayed under the control of the debugger. Breakpoints and exceptions
      behave as they do in a regular debug
      session.
    </p>
    <p>
      Code is edited on a scrapbook page.&nbsp; A VM is launched for each scrapbook page in which expressions are being evaluated. The first time an expression is evaluated in a scrapbook page after it is opened, a VM is
      launched. The VM for a page will remain active until the page is closed, terminated explicitly (in the debugger or via the <strong>Stop the Evaluation</strong> button in the
      editor toolbar), or when a <em>System.exit()</em> is evaluated.
    </p>
    <p>
      There are several ways to open the
      <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.debug.ui.snippetEditor.NewSnippetFileCreationWizard)")'>
      <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the New Java Scrapbook wizard">
      <strong>New Java Scrapbook Page</strong></a> wizard.
    </p>
        
<ul>
  <li> Create a file with a <strong>.jpage</strong> extension</li>
  <li> From the menu bar, select <strong>File</strong> &gt; <strong>New</strong> 
    &gt; <strong>Other...</strong>. Then select <strong>Java</strong> &gt; <strong>Java 
    Run/Debug</strong> &gt; <strong>Scrapbook Page</strong>. Then click <strong>Next</strong>. 
  </li>
</ul>
    Once you've opened the New Java Scrapbook Page wizard:.
    <ol>
      <li>
        In the <strong>Enter or select the folder</strong> field, type or click <strong>Browse</strong> to select the container for the new page.
      </li>
      <li>
        In the <strong>File name</strong> field, type a name for the new page. The <em>.jpage</em> extension will be added automatically if you do not type it
        yourself.
      </li>
      <li>
        Click <strong>Finish</strong> when you are done. The new scrapbook page opens in an editor.
      </li>
    </ol>
    <h3 class="related">Related concepts</h3>
      <a href="../concepts/cscrapbook.htm">Scrapbook</a><br>
      <a href="../concepts/concept-java-project.htm">Java projects</a>
    <h3 class="related">Related tasks</h3>
      <a href="../tasks/task-running_and_debugging.htm">Running and debugging</a>
    <h3 class="related">Related references</h3>
      <a href="../reference/views/ref-view-scrapbook.htm">Java scrapbook page</a>
  </body>
</html>

